< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/01030300.xhp

(section: basicfehler) (bookmark: bm_id3153344)
debugging Basic programs
variables; observing values
watching variables
run-time errors in Basic
error codes in Basic
breakpoints
Call Stack window

Basic プログラムのデバッグ
変数; 値を確認する
変数の確認
Basic のランタイムエラー
Basic のエラーコード
ブレークポイント
スタックの呼び出しウィンドウ

Debugging a Basic Program
Basic プログラムのデバッグ(hd_id3153344.1)

(/section: basicfehler)

Breakpoints and Single Step Execution
ブレークポイントとシングルステップの実行(hd_id3159224.4)

You can check each line in your Basic program for errors using single step execution. Errors are easily traced since you can immediately see the result of each step. A pointer in the breakpoint column of the Editor indicates the current line. You can also set a breakpoint if you want to force the program to be interrupted at a specific position.
Basic プログラム中のエラー行を探す場合、シングルステップを実行することで、コードを 1 行ずつ確認できます。この機能を利用すると、個々のステップの実行結果をその場で確認できるため、エラーの発生状況を簡単に追跡することができます。現在実行中の行については、ブレークポイントの設定列にマークが表示されます。また、特定の行でプログラムの実行を一時中断させたい場合は、該当行にブレークポイントを設定できます。(par_id3150682.5)

Double-click in the breakpoint column at the left of the Editor window to toggle a breakpoint at the corresponding line. When the program reaches a breakpoint, the program execution is interrupted.
エディタウィンドウの左側には、ブレークポイント 設定用の列があり、ここをダブルクリックすることで、該当行へのブレークポイントの設定と解除ができます。プログラム実行時にブレークポイントの設定列に到着すると、プログラムの実行が一時中断されます。(par_id3147303.7)

The single step execution using the Single Step icon causes the program to branch into procedures and functions.
シングルステップ によりプログラムを実行させるには、アイコン シングルステップ をクリックしますが、この場合は個々のプロシージャーや関数の内部に入り込む形でステップ実行が行われます。(par_id3155805.8)

The procedure step execution using the Procedure Step icon causes the program to skip over procedures and functions as a single step.
処理ステップによりプログラムを実行させるには、アイコン 処理ステップ をクリックしますが、この場合は個々のプロシージャーや関数は 1 つのステップとみなされるので、これらの内部に入り込む形でのステップ実行は行われません。(par_id3151110.25)

Properties of a Breakpoint
ブレークポイントのプロパティー(hd_id3153825.9)

The properties of a breakpoint are available through its context menu by right-clicking the breakpoint in the breakpoint column.
ブレークポイントのプロパティーを設定するには、ブレークポイントの設定列でコンテキストメニューを開きます。(par_id3147574.26)

You can activate and deactivate a breakpoint by selecting Active from its context menu. When a breakpoint is deactivated, it does not interrupt the program execution.
ブレークポイントの アクティブ非アクティブ は、コンテキストメニューのアクティブを選択して切り替えます。非アクティブにしたブレークポイントは、プログラムの実行を一時中断させません。(par_id3148473.10)

Select Properties from the context menu of a breakpoint or select Breakpoints from the context menu of the breakpoint column to call the Breakpoints dialog where you can specify other breakpoint options.
ブレークポイントのコンテキストメニューで プロパティー を選択するか、ブレークポイントの設定列のコンテキストメニューで ブレークポイント... を選択すると、その他のブレークポイント用オプションを設定するためのダイアログ ブレークポイントが表示されます。(par_id3159413.27)

The list displays all breakpoints with the corresponding line number in the source code. You can activate or deactivate a selected breakpoint by checking or clearing the Active box.
ここでは、すべての ブレークポイント が、ソースコード中の該当行の行番号として一覧表示されます。 選択したブレークポイントを有効にするかどうかは、 アクティブ チェックボックスの設定により切り替えることができます。(par_id3156280.11)

The Pass Count specifies the number of times the breakpoint can be passed over before the program is interrupted. If you enter 0 (default setting) the program is always interrupted as soon as a breakpoint is encountered.
ひととおり実行 には、プログラムの実行を一時中断するまでにブレークポイントを無視させる回数を指定できます。この値を 0 に指定したブレークポイントでは (既定値)、その行で常に一時中断が行われます。(par_id3158407.12)

Click Delete to remove the breakpoint from the program.
削除 をクリックすると、プログラムに設定したブレークポイントを削除できます。(par_id3153968.13)

Observing the Value of Variables
変数の値の監視(hd_id3150439.14)

You can monitor the values of a variable by adding it to the Watch window. To add a variable to the list of watched variables, type the variable name in the Watch text box and press Enter.
変数の値がどのように変化するかは、オブザーバ ウィンドウに登録することで確認できます。オブザーバのリストに変数を登録するには、変数名をテキストボックス オブザーバ に入力して Enter キーを押します。(par_id3153368.15)

The values of variables are only displayed if they are in scope. Variables that are not defined at the current source code location display ("Out of Scope") instead of a value.
値が表示されるのは、スコープ内にある変数だけです。現在のスコープのソースコード内で宣言されていない変数については、その代入値ではなく「Out of Scope」と表示されます。(par_id3146986.16)

You can also include arrays in the Watch window. If you enter the name of an array variable without an index value in the Watch text box, the content of the entire array is displayed.
オブザーバウィンドウには、配列の内容を表示させることもできます。オブザーバテキストボックスを使って配列名を指定する場合、インデックスを指定しなければ、配列全体の値が表示されます。(par_id3145272.17)

Tip Icon ヒント If you rest the mouse over a predefined variable in the Editor at run-time, the content of the variable is displayed in a pop-up box.
実行時にエディタ上で事前定義された変数にマウスポインタを重ねると、ポップアップボックスにその変数の値が表示されます。(par_id3145749.19)

The Call Stack Window
呼び出しウィンドウ(hd_id3148618.20)

Provides an overview of the call hierarchy of procedures and functions. You can determine which procedures and functions called which other procedures and functions at the current point in the source code.
プロシージャーや関数の呼び出し状況を表示します。 現在の実行中のソースコードにおける、関数やプロシージャー相互の呼び出し関係を把握したい場合、この機能が有用です。(par_id3154491.21)

List of Run-Time Errors
実行時エラーの一覧(hd_id3150594.24)

(embed text/sbasic/shared/00000003.xhp#allerrors : linkinfo)

(variable: err2)2 Unspecified syntax error
(variable: err2)2 原因不明のシンタックスエラーです(par_id3155095.38)

(variable: err3)3 Return without Gosub
(variable: err3)3 Return に対応する GoSub がありません(par_id3149126.39)

(variable: err4)4 Redo from start
(variable: err4)4 最初からやり直してください (par_id3153976.40)

(variable: err5)5 Invalid procedure call
(variable: err5)5 無効なプロシージャー呼び出しです (par_id3150891.41)

(variable: err6)6 Overflow
(variable: err6)6 オーバーフローです(par_id3159227.42)

(variable: err7)7 Out of memory
(variable: err7)7 メモリ不足です (par_id3154649.43)

(variable: err8)8 Array already dimensioned
(variable: err8)8 配列がすでに宣言されています(par_id3150050.44)

(variable: err9)9 Subscript out of range
(variable: err9)9 サブスクリプトが範囲外です(par_id3148900.45)

(variable: err10)10 Duplicate definition
(variable: err10)10 定義が重複しています (par_id3153806.46)

(variable: err11)11 Division by zero
(variable: err11)11 ゼロによる除算が行われました (par_id3146963.47)

(variable: err12)12 Variable undefined
(variable: err12)12 変数が未定義です (par_id3153013.48)

(variable: err13)13 Type mismatch
(variable: err13)13 型が一致しません (par_id3155593.49)

(variable: err14)14 Invalid parameter
(variable: err14)14 無効なパラメータです (par_id3151197.50)

(variable: err18)18 User interrupt occurred
(variable: err18)18 ユーザーによる割り込みが発生しました(par_id3154710.51)

(variable: err20)20 Resume without error
(variable: err20)20 エラーが発生していないのでResumeは実行できません (par_id3147504.52)

(variable: err28)28 Out of stack space
(variable: err28)28 スタック空間が不足しています (par_id3145319.53)

(variable: err35)35 Sub or Function not defined
(variable: err35)35 Sub または functionが未定義です (par_id3146110.54)

(variable: err48)48 Error in loading DLL
(variable: err48)48 DLL の読み込みエラーです(par_id3147246.55)

(variable: err49)49 Bad DLL calling convention
(variable: err49)49 DLL 呼び出しが不正です (par_id3146101.56)

(variable: err51)51 Internal error
(variable: err51)51 内部エラーが発生しました (par_id3153957.57)

(variable: err52)52 Bad file name or number
(variable: err52)52 ファイル名または番号が不正です(par_id3154404.58)

(variable: err53)53 File not found
(variable: err53)53 ファイルが見つかりません (par_id3151338.59)

(variable: err54)54 Bad file mode
(variable: err54)54 ファイルモードが不正です(par_id3147298.60)

(variable: err55)55 File already open
(variable: err55)55 ファイルが既に開かれています(par_id3148747.61)

(variable: err57)57 Device I/O error
(variable: err57)57 デバイス I/Oエラーです (par_id3145233.62)

(variable: err58)58 File already exists
(variable: err58)58 ファイルがすでに存在します (par_id3156399.63)

(variable: err59)59 Bad record length
(variable: err59)59 レコード長が不正です(par_id3149324.64)

(variable: err61)61 Disk full
(variable: err61)61 ディスクに空き容量がありません(par_id3147409.65)

(variable: err62)62 Input past end of file
(variable: err62)62 入力がファイルの終端を超えました(par_id3149146.66)

(variable: err63)63 Bad record number
(variable: err63)63 レコード番号が不正です (par_id3150456.67)

(variable: err67)67 Too many files
(variable: err67)67 ファイル数が多すぎます (par_id3146883.68)

(variable: err68)68 Device not available
(variable: err68)68 デバイスが使用できません (par_id3146818.69)

(variable: err70)70 Permission denied
(variable: err70)70 アクセスが拒否されました (par_id3145225.70)

(variable: err71)71 Disk not ready
(variable: err71)71 ディスクが準備されていません (par_id3150372.71)

(variable: err73)73 Feature not implemented
(variable: err73)73 機能が実装されていません (par_id3148894.72)

(variable: err74)74 No rename with different drive
(variable: err74)74 別ドライブへ名前を変更できません (par_id3152981.73)

(variable: err75)75 Path/file access error
(variable: err75)75 パスまたはファイルのアクセスエラーです(par_id3149355.74)

(variable: err76)76 Path not found
(variable: err76)76 パスが見つかりません (par_id3150477.75)

(variable: err91)91 Object variable not set
(variable: err91)91 オブジェクト変数が設定されていません(par_id3154678.76)

(variable: err93)93 Invalid pattern string
(variable: err93)93 無効なパターン文字列です (par_id3149890.77)

(variable: err94)94 Invalid use of Null
(variable: err94)94 無効な Null の使い方です (par_id3146942.78)

(variable: err323)323 Can't load module
(variable: err323)323 モジュールを読み込むことができません (par_id3150028.79)

(variable: err341)341 Invalid object index
(variable: err341)341 無効なオブジェクトインデックス(par_id3148434.80)

(variable: err366)366 No active view or document
(variable: err366)366 アクティブなビューまたはドキュメントが存在しません (par_id3143219.81)

(variable: err380)380 Bad property value
(variable: err380)380 属性値が不正です (par_id3144744.82)

(variable: err382)382 Property is read only
(variable: err382)382 属性が読み取り専用です(par_id3147420.83)

(variable: err394)394 Property is write only
(variable: err394)394 属性が書き込み専用です(par_id3147472.84)

(variable: err420)420 Invalid object reference
(variable: err420)420 無効なオブジェクトリファレンス(par_id3148583.85)

(variable: err423)423 Property or method not found
(variable: err423)423 属性またはメソッドが見つかりません (par_id3153329.86)

(variable: err424)424 Object required
(variable: err424)424 オブジェクトが必要です (par_id3148738.87)

(variable: err425)425 Invalid use of object
(variable: err425)425 無効なオブジェクトの使い方です(par_id3159084.88)

(variable: err430)430 Class does not support OLE
(variable: err430)430 クラスが OLEをサポートしていません (par_id3146806.89)

(variable: err438)438 Object doesn't support method
(variable: err438)438 オブジェクトがメソッドをサポートしていません (par_id3146130.90)

(variable: err440)440 OLE automation error
(variable: err440)440 OLE オートメーションエラーです(par_id3154374.91)

(variable: err445)445 Object doesn't support this action
(variable: err445)445 オブジェクトがこの動作をサポートしていません(par_id3149685.92)

(variable: err446)446 Object doesn't support named args
(variable: err446)446 オブジェクトが名前付き引数をサポートしていません(par_id3150282.93)

(variable: err447)447 Object doesn't support current locale setting
(variable: err447)447 オブジェクトが現在のロケール設定をサポートしていません(par_id3150142.94)

(variable: err448)448 Named argument not found
(variable: err448)448 名前付き引数が見つかりません (par_id3152771.95)

(variable: err449)449 Argument not optional
(variable: err449)449 引数は省略できません (par_id3145145.96)

(variable: err450)450 Wrong number of arguments
(variable: err450)450 引数の数が正しくありません (par_id3154399.97)

(variable: err451)451 Object not a collection
(variable: err451)451 オブジェクトがコレクションではありません (par_id3146137.98)

(variable: err452)452 Invalid ordinal
(variable: err452)452 無効な序数です(par_id3149507.99)

(variable: err453)453 Specified DLL function not found
(variable: err453)453 指定されたDLL関数が見つかりません (par_id3154566.100)

(variable: err460)460 Invalid clipboard format
(variable: err460)460 無効なクリップボード形式です (par_id3145595.101)

(/embed text/sbasic/shared/00000003.xhp#allerrors)


< Prev / Next >